﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace reminder_csh {
    public partial class Form3 : Form {
        private TaskManagerImpl manager;
        public Form3() {
            InitializeComponent();
            manager=new TaskManagerImpl();
        }

        private void button1_Click(object sender, EventArgs e) {
            manager.CreateTask(new Task {
                Name=nameTextBox.Text,
                Description=descriptionTextBox.Text,
                Done=doneCheckBox.Checked,
                Deadline=deadlineDateTimePicker.Value
            });
            manager.Dispose();

        }
    }
}
